<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <!--<h4 class="modal-title">算法导入</h4>-->
</div>
<form id="defaultForm" method="post" class="form-horizontal" action="/project/accountManage/arithmeticImport_save">
    <div class="modal-body">

            <div class="form-group">
                <label class="col-lg-3 control-label">名称</label>
                <div class="col-lg-6">
                    <input type="text" class="form-control" name="name" />
                </div>
            </div>

        <div class="form-group">
                <label class="col-lg-3 control-label">版本</label>
                <div class="col-lg-6">
                    <input type="text" class="form-control" name="version" />
                </div>
            </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">备注</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" name="remark"/>
            </div>
        </div>

        <div class="form-group">
                <label class="col-lg-3 control-label">文件</label>
            <div class="col-lg-6">
                <input type="text" id="filename" class="form-control" name="filename" />
            </div>
            <div  class="col-lg-3">
                <button class="btn btn-success fileinput-button" type="button">打开</button>
                <input type="file" id="jobData" onchange="loadFile(this.files[0])" style="position:absolute;top:0;left:0;font-size:34px; opacity:0">
            </div>
        </div>


    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">保存</button>
    </div>
</form>

<script>
    function loadFile(file){
        $("#filename").val(file.name);
    }
    initCheck();
</script>

